﻿<Page x:Class="RapidTutorialWPF.Calculator"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Calculator" xmlns:rl="clr-namespace:Jalindi.RapidLayout;assembly=RapidLayout2009.Windows">
    <rl:RapidPanel Name="Panel" ShouldDebug="True" StackMode="Horizontal" RowDistribution="Even"
                   ColumnDistribution="even"
                   GuideDisplayMode="Design">
        <TextBox rl:RapidPanel.Horizontal="col=#span" rl:RapidPanel.Vertical="row=1" FontSize="25" FontWeight="Bold" Text="03ll4" FontFamily="Courier New" HorizontalContentAlignment="Right"></TextBox>
        <Button Content="MC" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=2"/>
        <Button Content="MR" rl:RapidPanel.Horizontal="col=2" rl:RapidPanel.Vertical="row=2"/>
        <Button Content="MS" rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=2"/>
        <Button Content="M+" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=2"/>
        <Button Content="M-" rl:RapidPanel.Horizontal="col=5" rl:RapidPanel.Vertical="row=2"/>
        
        <Button Content="[--" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=3"/>
        <Button Content="CE" rl:RapidPanel.Horizontal="col=2" rl:RapidPanel.Vertical="row=3"/>
        <Button Content="C" rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=3"/>
        <Button Content="+/-" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=3"/>
        <Button Content="SQRT" rl:RapidPanel.Horizontal="col=5" rl:RapidPanel.Vertical="row=3"/>

        <Button Content="7" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=4"/>
        <Button Content="8" rl:RapidPanel.Horizontal="col=2" rl:RapidPanel.Vertical="row=4"/>
        <Button Content="9" rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=4"/>
        <Button Content="/" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=4"/>
        <Button Content="%" rl:RapidPanel.Horizontal="col=5" rl:RapidPanel.Vertical="row=4"/>
        
        <Button Content="4" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=5"/>
        <Button Content="5" rl:RapidPanel.Horizontal="col=2" rl:RapidPanel.Vertical="row=5"/>
        <Button Content="6" rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=5"/>
        <Button Content="*" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=5"/>
        <Button Content="1/x" rl:RapidPanel.Horizontal="col=5" rl:RapidPanel.Vertical="row=5"/>

        <Button Content="1" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=6"/>
        <Button Content="2" rl:RapidPanel.Horizontal="col=2" rl:RapidPanel.Vertical="row=6"/>
        <Button Content="3" rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=6"/>
        <Button Content="-" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=6"/>
        <Button Content="=" rl:RapidPanel.Horizontal="col=5" rl:RapidPanel.Vertical="row=6" rl:RapidPanel.Bottom="t=7"/>

        <Button Content="0" rl:RapidPanel.Horizontal="col=1" rl:RapidPanel.Vertical="row=7" rl:RapidPanel.Right="t=2"/>
        <Button Content="." rl:RapidPanel.Horizontal="col=3" rl:RapidPanel.Vertical="row=7"/>
        <Button Content="+" rl:RapidPanel.Horizontal="col=4" rl:RapidPanel.Vertical="row=7"/>

        <!--<Button Name="one"  Content="1111" rl:RapidPanel.Top="t=screen, preferred" rl:RapidPanel.Left="preferred" rl:RapidPanel.Bottom="spring"
                rl:RapidPanel.Horizontal="e=bb" VerticalAlignment="Top"></Button>
        <Button Name="two" Content="2" rl:RapidPanel.Left="tie,clamp,preferred,t=#previous"
                rl:RapidPanel.Horizontal="e=bb"></Button>
        <Button Name="three" Content="3" rl:RapidPanel.Left="tie,clamp,preferred,t=#previous"
                rl:RapidPanel.Horizontal="e=bb"></Button>
        <Button Height="23" Name="button1" Width="75" rl:RapidPanel.Left="clamp,t=#previous" >Button</Button>

        <Button Name="threex" Content="3" rl:RapidPanel.Left="60" rl:RapidPanel.Top="60" Width="50" />-->
    </rl:RapidPanel>
</Page>
